//
//  MockupAppDelegate.m
//  Mockup
//
//  Created by JOHN HODGSON on 2/14/10.
//  Copyright 2010 Mac-Easy@USC. All rights reserved.
//
//  Last update: 3/2/10

#import "MockupAppDelegate.h"
#import "MainMenuVC.h"
#import "Configuration.h"

@implementation MockupAppDelegate

@synthesize window;
@synthesize viewController;
@synthesize navigationController;


- (void)applicationDidFinishLaunching:(UIApplication *)application {    

	//[[UIApplication sharedApplication] setStatusBarHidden:YES];
	
    // Override point for customization after application launch
	[Configuration sharedInstance];
	
	
	
	viewController.wantsFullScreenLayout = YES;
	
	[window addSubview:viewController.view];
    [window makeKeyAndVisible];
	
	[viewController showSplashScreen];
}

- (void)applicationWillTerminate:(UIApplication *)application {
	NSLog(@"MockupAppDelegate: Application will terminate");
	
	NSLog(@"save highscores");
	[Configuration saveHighScores];
	NSLog(@"save settings");
	[Configuration saveSettings];
	NSLog(@"done saving");
//	[Configuration killSharedInstance];
}
- (void)dealloc {
	[viewController release];
	[navigationController release];
    [window release];
    [super dealloc];
}


@end
